#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
    ButtonLayoutStyleNormal,
    ButtonLayoutStyleReversal,
} ButtonLayoutStyle;
@protocol BYButtonDelegate <NSObject>
- (void)byButtonClick;
@end
@interface BYButton : UIView
@property (nonatomic ,strong) UIImageView *iconView;
@property (nonatomic ,strong) UILabel *textLabel;
@property (nonatomic, strong) UIFont *myfont;
@property (nonatomic, copy) NSString *text;
@property (nonatomic, strong) UIColor *textColorNor;
@property (nonatomic, strong) UIColor *textColorSel;
@property (nonatomic, copy) NSString *iconNameNor;
@property (nonatomic, copy) NSString *iconNameSel;
@property (nonatomic ,assign) BOOL isSelected;
@property (nonatomic ,assign) ButtonLayoutStyle style;
@property (nonatomic ,assign) CGFloat inset;
@property (nonatomic ,assign) CGFloat space;
@property (nonatomic, assign) BOOL isAnimated;
@property (nonatomic ,weak) id<BYButtonDelegate> delegate;
@property(nonatomic, copy) void(^clickBlock)(void);
- (instancetype)initWithFrame:(CGRect)frame
                  iconNameNor:(NSString *)iconNameNor
                  iconNameSel:(NSString *)iconNameSel
                         text:(NSString *)text
                         font:(UIFont *)font
                 textColorNor:(UIColor *)textColorNor
                 textColorSel:(UIColor *)textColorSel
                        style:(ButtonLayoutStyle)style
                        inset:(CGFloat)inset
                        space:(CGFloat)space
                   isAnimated:(BOOL)isAnimated;
- (instancetype)initWithFrame:(CGRect)frame
                  iconName:(NSString *)iconName
                         text:(NSString *)text
                         font:(UIFont *)font
                 textColor:(UIColor *)textColor
                        style:(ButtonLayoutStyle)style
                        inset:(CGFloat)inset
                        space:(CGFloat)space;
@end
NS_ASSUME_NONNULL_END
